<template>
  <PageContent ref="pageContentRef" :content-table-config="contentTableConfig" pageName="goods">
    <!-- 跨组件插槽 -->
    <template #image="scope">
      <el-image
        style="width: 60px; height: 60px"
        :src="scope.row.imgUrl"
        :preview-src-list="[scope.row.imgUrl]"
      ></el-image>
    </template>
    <template #oldPrice="scope">{{ '¥' + scope.row.oldPrice }}</template>
  </PageContent>
</template>

<script setup lang="ts">
import PageContent from '@/components/PageContent'

import { contentTableConfig } from './config/content.config'

import { usePageSearch } from '@/hooks/usePageSearch'
const [pageContentRef] = usePageSearch()
</script>

<style scoped lang="less"></style>
